package cn.mst.vrs.controller.admin.order.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;

@Schema(description = "管理后台 - 订单新增/修改 Request VO")
@Data
public class OrderSaveReqVO {

    @Schema(description = "订单类型主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22973")
    @NotNull(message = "订单类型主键ID不能为空")
    private Long typeId;

    @Schema(description = "用户主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "16422")
    @NotNull(message = "用户主键ID不能为空")
    private Long userId;

    @Schema(description = "订单项主键ID（场地预约：场地主键ID）", requiredMode = Schema.RequiredMode.REQUIRED, example = "3762")
    @NotNull(message = "订单项主键ID（场地预约：场地主键ID）不能为空")
    private Long itemId;

    @Schema(description = "计数", requiredMode = Schema.RequiredMode.REQUIRED, example = "22705")
    @NotNull(message = "计数不能为空")
    private BigDecimal count;

    @Schema(description = "总计", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "总计不能为空")
    private BigDecimal total;

    @Schema(description = "订单扩展信息", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "订单扩展信息不能为空")
    private String extendInfo;

    @Schema(description = "订单状态（0：待支付，1：待使用，2：已过期）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "订单状态（0：待支付，1：待使用，2：已过期）不能为空")
    private Integer status;

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "13316")
    private Long id;

}